import org.junit.Test;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/*
Author     :Dsi
Date       : 2021/11/25 9:01
Description: 
*/
public class TestDemo02 {
    @Test
    public void get() throws Exception {
        Class<TestDemo> testDemoClass = TestDemo.class;
        Constructor<TestDemo> declaredConstructor = testDemoClass.getDeclaredConstructor();
        declaredConstructor.setAccessible(true);

        TestDemo testDemo = declaredConstructor.newInstance();
        TestDemo testDemo1 = declaredConstructor.newInstance();
        System.out.println(testDemo==testDemo1);
    }
}
